import djs, { Dayjs } from 'dayjs'
import { ref } from 'vue'


export const serverTime = ref(Date.now())

export const dayjs = (...args: any): Dayjs => djs(...args || serverTime.value)

setInterval((): number => (serverTime.value += 100), 100)
